package com.beardedcoder.lowPower.service;

import java.io.Serializable;

public class Settings implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private boolean logLastUnplugged = true;
	@SuppressWarnings("unused")
	private static final String SERVICE_SETTINGS_FILE = "SERVICE_SETTINGS_FILE";
	
	/**
	 * This will load any persisted values from storage
	 */
	public Settings () {
//		File f = new File(SERVICE_SETTINGS_FILE);
//		FileInputStream fin;
//		ObjectInputStream ois;
//		
//		try {
//			fin = new FileInputStream(f);
//			ois = new ObjectInputStream(fin);
//			Object input = ois.readObject();
//			if (input != null) {
//				this = input;
//			}
//			
//		} catch (FileNotFoundException e) {
//			e.printStackTrace();
//		} catch (StreamCorruptedException e) {
//			e.printStackTrace();
//		} catch (IOException e) {
//			e.printStackTrace();
//		} catch (ClassNotFoundException e) {
//			e.printStackTrace();
//		}
		
	}

	public void setLogLastUnplugged(boolean logLastUnplugged) {
		this.logLastUnplugged = logLastUnplugged;
	}

	public boolean isLogLastUnplugged() {
		return logLastUnplugged;
	}

}
